﻿using TianYuan.Core.Events.Bus.EventBus.Config;
using TianYuan.Utils.Reflection;
using Castle.MicroKernel.Registration;
using Castle.MicroKernel.SubSystems.Configuration;
using Castle.Windsor;
using TianYuan.Core.Reflection;
using TianYuan.Core.Caching.Interception;

namespace TianYuan.Core.Dependency.Installers
{

    internal class CacheInstaller : IWindsorInstaller
    {
        public void Install(IWindsorContainer container, IConfigurationStore store)
        {
            container.Register(
                Component.For<CacheInterceptor>().LifeStyle.Transient
                );
        }
    }
}